/**
 * 
 */
package br.financeiro.adapters;

import java.util.ArrayList;
import java.util.List;

/**
 * @author evaldosavio
 * 
 */
public class ItemListView {
	private String Title;
	private List<String> subItens;
	private List<Integer> iconsItens;
	private int id;

	/**
	 * @param title
	 * @param id
	 * @date_modify Feb 27, 2013
	 * @author evaldosavio
	 */
	public ItemListView( String title, int id ) {
		Title = title;
		this.id = id;
		iconsItens = new ArrayList<Integer>();
		subItens = new ArrayList<String>();
	}

	/**
	 * Get title
	 * 
	 * @date_modificacao Feb 26, 2013
	 * @author evaldosavio
	 * @return the title
	 */
	public String getTitle() {
		return Title;
	}

	/**
	 * Set title
	 * 
	 * @date_modificacao Feb 26, 2013
	 * @author evaldosavio
	 * @param title
	 *            the title to set
	 */
	public void setTitle( String title ) {
		Title = title;
	}

	/**
	 * Get subItens
	 * 
	 * @date_modificacao Feb 26, 2013
	 * @author evaldosavio
	 * @return the subItens
	 */
	public List<String> getSubItens() {
		return subItens;
	}

	/**
	 * Set subItens
	 * 
	 * @date_modificacao Feb 26, 2013
	 * @author evaldosavio
	 * @param subItens
	 *            the subItens to set
	 */
	public void setSubItens( List<String> subItens ) {
		this.subItens = subItens;
	}

	/**
	 * Get id
	 * 
	 * @date_modificacao Feb 26, 2013
	 * @author evaldosavio
	 * @return the id
	 */
	public int getId() {
		return id;
	}

	/**
	 * Set id
	 * 
	 * @date_modificacao Feb 26, 2013
	 * @author evaldosavio
	 * @param id
	 *            the id to set
	 */
	public void setId( int id ) {
		this.id = id;
	}

	/**
	 * Get iconsItens
	 * 
	 * @date_modificacao Feb 27, 2013
	 * @author evaldosavio
	 * @return the iconsItens
	 */
	public List<Integer> getIconsItens() {
		return iconsItens;
	}

	/**
	 * Set iconsItens
	 * 
	 * @date_modificacao Feb 27, 2013
	 * @author evaldosavio
	 * @param iconsItens
	 *            the iconsItens to set
	 */
	public void setIconsItens( List<Integer> iconsItens ) {
		this.iconsItens = iconsItens;
	}

	public void addItem( String desc, int resource ) {
		subItens.add( desc );
		iconsItens.add( resource );
	}
}
